package com.arpa.wms.common.util;

import cn.hutool.core.util.StrUtil;

public class LogisticsUtils {

    private LogisticsUtils () {
        throw new IllegalStateException("Utility class");
    }
   /**
     * 翻译获取物流公司名称
     * @param logisticsCode
     * @return
     */
    public static String translate(String logisticsCode) {
        if (StrUtil.isEmpty(logisticsCode)) {
            return null;
        }
        switch (logisticsCode) {
            case "SF":
                return "顺丰";
            case "KS":
                return "快手";
            case "TB":
                return "淘宝";
            case "PDD":
                return "拼多多";
            case "EMS":
                return "标准快递";
            case "EYB":
                return "经济快件";
            case "ZJS":
                return "宅急送";
            case "YTO":
                return "圆通";
            case "ZTO":
                return "中 通(ZTO)";
            case "HTKY":
                return "百世汇通";
            case "UC":
                return "优速";
            case "STO":
                return "申通";
            case "TTKDEX":
                return "天天快递";
            case "QFKD":
                return "全峰";
            case "FAST":
                return "快捷";
            case "POSTB":
                return "邮政小包";
            case "GTO":
                return "国通";
            case "YUNDA":
                return "韵达";
            case "JD":
                return "京东配送";
            case "DD":
                return "当当宅配";
            case "AMAZON":
                return "亚马逊物流";
            case "OTHER":
                return "其他";
            default:
                return "其他";
        }
    }
}
